package com.company.project.service.impl;

import com.company.project.bean.Role;
import com.company.project.bean.User;
import com.company.project.dao.SaveUserDao;
import com.company.project.service.SaveUserService;

public class SaveUserServiceImpl implements SaveUserService{

	private SaveUserDao saveUserDao;
	
	
	public void setSaveUserDao(SaveUserDao saveUserDao) {
		this.saveUserDao = saveUserDao;
	}


	@Override
	public void save(User user) {
		saveUserDao.save(user);
		// TODO Auto-generated method stub
		
	}


	@Override
	public Role getUserRole(int i) {
		// TODO Auto-generated method stub
		return saveUserDao.getById("id",i);
	}

}
